/*
 * Copyright (C) 2025 ameise <ameise.wang@gmail.com> - All Rights Reserved
 *
 * This file is part of e3log.
 *
 * e3log is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * e3log is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with e3log. If not, see <https://www.gnu.org/licenses/>.
 */

package e3log

type iEncoder interface {
	appendStr([]byte, string, string) []byte
	appendStrs([]byte, string, []string) []byte
	appendErr([]byte, error) []byte
	appendErrs([]byte, []error) []byte
	appendInt([]byte, string, int) []byte
	appendInts([]byte, string, []int) []byte
	appendInt8([]byte, string, int8) []byte
	appendInt8s([]byte, string, []int8) []byte
	appendInt16([]byte, string, int16) []byte
	appendInt16s([]byte, string, []int16) []byte
	appendInt32([]byte, string, int32) []byte
	appendInt32s([]byte, string, []int32) []byte
	appendInt64([]byte, string, int64) []byte
	appendInt64s([]byte, string, []int64) []byte
	appendUint([]byte, string, uint) []byte
	appendUints([]byte, string, []uint) []byte
	appendUint8([]byte, string, uint8) []byte
	appendUint8s([]byte, string, []uint8) []byte
	appendUint16([]byte, string, uint16) []byte
	appendUint16s([]byte, string, []uint16) []byte
	appendUint32([]byte, string, uint32) []byte
	appendUint32s([]byte, string, []uint32) []byte
	appendUint64([]byte, string, uint64) []byte
	appendUint64s([]byte, string, []uint64) []byte
	appendFloat32([]byte, string, int, float32) []byte
	appendFloat32s([]byte, string, int, []float32) []byte
	appendFloat64([]byte, string, int, float64) []byte
	appendFloat64s([]byte, string, int, []float64) []byte
	appendBool([]byte, string, bool) []byte
	appendBools([]byte, string, []bool) []byte
	appendObject([]byte, LogMarshaller) []byte
	appendObjects([]byte, []LogMarshaller) []byte
	begin([]byte) []byte
}
